package com.mySchool.aop;

import lombok.extern.slf4j.*;
import org.aspectj.lang.*;
import org.aspectj.lang.annotation.*;
import org.springframework.stereotype.*;

/**
* @author : Hinton
* @时间 : 2024/12/14 上午10:14
*/
@Aspect
@Component
@Slf4j
public class AutofillAspect {

    @Pointcut("execution(* com.mySchool.mapper.*.*(..)) && @annotation(com.mySchool.anno.Autofill)")
    public void autofillPointCut() {}


    @Before("autofillPointCut()")
    public void autofill(JoinPoint joinPoint) {
        log.info("开始进行公共字段填充");

    }
}
